package com.HQCourse.live.service.impl;


import com.HQCourse.live.mapper.LiveCourseGoodsMapper;
import com.HQCourse.live.service.LiveCourseGoodsService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.HQCourse.model.live.LiveCourseConfig;
import com.example.HQCourse.model.live.LiveCourseGoods;
import com.example.HQCourse.vo.live.LiveCourseConfigVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 直播课程关联推荐表 服务实现类
 * </p>
 *
 * @author zww
 * @since 2023-07-13
 */
@Service
public class LiveCourseGoodsServiceImpl extends ServiceImpl<LiveCourseGoodsMapper, LiveCourseGoods> implements LiveCourseGoodsService {
    //查看配置信息
    @Override
    public List<LiveCourseGoods> getGoodsListService(Long id) {
      //查询直播课程商品列表
        return baseMapper.selectList(new LambdaQueryWrapper<LiveCourseGoods>().eq(
                LiveCourseGoods::getLiveCourseId, id));
    }
    }

